package map;

import java.io.Serializable;

public class Tile implements Serializable {

	private static final long serialVersionUID = 2781071840807144967L;
	private TileType tileType;
	private Item item;
	private boolean hidden;
	
	public Tile(TileType tileType) {
		this.tileType = tileType;
		this.hidden = true;
	}

	public TileType getTileType() {
		return tileType;
	}

	public void setTileType(TileType tileType) {
		this.tileType = tileType;
	}
	
	public boolean isAccessible() {
		return tileType.isAccessible();
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}
	
	
	
	

	
	
	
}
